//
//  SourceListDetaiInfoCell.m
//  NtoccShipper
//
//  Created by mac on 2019/11/15.
//  Copyright © 2019 zhuchongjin. All rights reserved.
//

#import "SourceListDetaiInfoCell.h"

@interface SourceListDetaiInfoCell()
@property (nonatomic,strong) CJLabel *labName;
@property (nonatomic,strong) CJLabel *labContent;
@property (nonatomic,strong) FlexTouchView *touchOtherFee;
@end

@implementation SourceListDetaiInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setCellInfoWithDict:(NSDictionary *)dic{
    
    NSString *strTitle = dic[@"title"];
    self.labName.text = strTitle;
    
    if ([CJStringWithFormat(@"%@",dic[@"content"]) isEqualToString:@""]) {
            self.labContent.text = @"";
    }else{
        self.labContent.text = dic[@"content"];
    }

    if ([strTitle isEqualToString:@"其它费用"]) {
        self.touchOtherFee.userInteractionEnabled = YES;
    }else{
        self.touchOtherFee.userInteractionEnabled = NO;
    }
}

/// 其他费用
- (void)btnTouchOtherFeeAction{
    
    if (self.blockOtherFee) {
        self.blockOtherFee(@"");
    }
}

@end
